package com.lvyp.server.controller;


import com.lvyp.server.pojo.PoliticsStatus;
import com.lvyp.server.service.IPoliticsStatusService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author lvyp
 * @since 2021-04-24
 */
@RestController
@RequestMapping("/politics-status")
public class PoliticsStatusController {
    @Autowired
    IPoliticsStatusService politicsStatusService;

    @ApiOperation(value = "获取所有职称")
    @GetMapping("/")
    public List<PoliticsStatus> getAllPoliticsStatus() {
        return politicsStatusService.list();
    }


}
